package com.meida.paotui.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 *
 * @author flyme
 * @date 2019-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_voucher")
@TableAlias("voucher")
@ApiModel(value="BusVoucher对象", description="")

public class BusVoucher extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "voucherId", type = IdType.ID_WORKER)
    private Long voucherId;

    @ApiModelProperty(value = "面值")
    private BigDecimal voucherSum;

    @ApiModelProperty(value = "优惠券有效开始时间")
    private Date startTime;

    @ApiModelProperty(value = "优惠券截止日期")
    private Date endTime;

    @ApiModelProperty(value = "优惠券使用条件")
    private String voucherCondition;
    @ApiModelProperty(value = "状态 1禁用 2启用")
    private String state;

    @ApiModelProperty(value = "优惠券类型 1折扣 2满减")
    private String voucherType;

    @ApiModelProperty(value = "奖券说明")
    private String voucherExplain;

    @ApiModelProperty(value = "剩余数量")
    private String surplusCtn;

}
